package com.lagou.feign;

import com.lagou.commom.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-service-product",fallback = FeignFallBack.class)
@Component
public interface ProductFeign {

    @RequestMapping("/products/query/{id}")
    Products getProduct(@PathVariable("id") Integer id);

    @RequestMapping("/products/getPort")
    String getPort();
}
